package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.hl.mapper.ShopInfoMapper;
import com.hl.domain.ShopInfo;
import com.hl.service.IShopInfoService;

/**
 * 店铺列表Service业务层处理
 *
 * @author ruoyi
 * @date 2025-08-05
 */
@Service
@Primary
public class ShopInfoServiceImpl implements IShopInfoService
{
    @Autowired
    private ShopInfoMapper shopInfoMapper;

    /**
     * 查询店铺列表
     *
     * @param id 店铺列表主键
     * @return 店铺列表
     */
    @Override
    public ShopInfo selectShopInfoById(Integer id)
    {
        return shopInfoMapper.selectShopInfoById(id);
    }

    /**
     * 查询店铺列表列表
     *
     * @param shopInfo 店铺列表
     * @return 店铺列表
     */
    @Override
    public List<ShopInfo> selectShopInfoList(ShopInfo shopInfo)
    {
        return shopInfoMapper.selectShopInfoList(shopInfo);
    }

    /**
     * 新增店铺列表
     *
     * @param shopInfo 店铺列表
     * @return 结果
     */
    @Override
    public int insertShopInfo(ShopInfo shopInfo)
    {
        return shopInfoMapper.insertShopInfo(shopInfo);
    }

    /**
     * 修改店铺列表
     *
     * @param shopInfo 店铺列表
     * @return 结果
     */
    @Override
    public int updateShopInfo(ShopInfo shopInfo)
    {
        return shopInfoMapper.updateShopInfo(shopInfo);
    }

    /**
     * 批量删除店铺列表
     *
     * @param ids 需要删除的店铺列表主键
     * @return 结果
     */
    @Override
    public int deleteShopInfoByIds(Integer[] ids)
    {
        return shopInfoMapper.deleteShopInfoByIds(ids);
    }

    /**
     * 删除店铺列表信息
     *
     * @param id 店铺列表主键
     * @return 结果
     */
    @Override
    public int deleteShopInfoById(Integer id)
    {
        return shopInfoMapper.deleteShopInfoById(id);
    }
}
